home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Mac OS SDK / Dev.CD Jan 98 SDK1.toast / Development Kits (Disc 1) / Macintosh Easy Open / Documentation / Developer / PowerPC / README < prev    next >
Encoding:
Text File  |  1995-09-25  |  2.3 KB  |  54 lines  |  [TEXT/MPS ]

  1. This sample is a direct extension of the LowerToUpperCaseScrap sample. It 
  2. completes the sample by adding the file translation part. Hence the name
  3. change.
  4.  
  5. Original Author Anonymous
  6. --
  7.  
  8. Modified By
  9. R.Silva,  9/11/95
  10.  
  11.  
  12. LowerToUpperCase
  13. ----------------
  14.  
  15. LowerToUpperCase  is a sample Translation Manager (Macintosh Easy Open) 
  16. translator which is FAT (contains both 68K and PowerPC code).  It is an 
  17. example on how to write a translator which exploits
  18. the performance of the Power Macintosh, but at the same time retains full
  19. compatibility with the 68K line of Macintosh Computers.
  20.  
  21. The LowerToUpperCase sample code actually constructs a "safe accelerated
  22. resource", which is a variant of an accelerated resource that will run
  23. without crashing on pre-Mixed mode machines. For details look at the file
  24. MixedMode.r and examine the definition of the 'sdes' resource type.
  25.  
  26. The translator converts 'TEXT' to 'UPPR' (TEXT to upper case).  To see the
  27. scrap translation execute,you can write a simple program which does a
  28. GetScrap(h, 'UPPR', &offset) and have 'TEXT' on the clipboard prior to
  29. executing that line of code. To see the file translation execute
  30. you can use the sample app, UpperDocDemo, included in this folder that uses
  31. files of type 'UPPR'. This sample app was created by modifying the 
  32. Metrowerk's PowerPlant sample DocDemo68K. It also uses the scrap translation 
  33. for cutting and pasting.
  34.  
  35.  
  36.  
  37. How do you build it?
  38. ------------------
  39. From the Macintosh on RISC CD or other developer CD's, install the MPW PPC
  40. compiler and other tools into your MPW.  Also install the Macintosh Easy Open
  41. PowerPC / 68K interfaces and libraries into those directories too.
  42.  
  43. Once that's done, simply set your current directory to the one containing the
  44. source to the LowerToUpperCase translator and execute the script
  45. BuildLowerToUpperCase.
  46.  
  47. A version of the make file, "PreRelease.make", for the Prerelease MPW environment
  48. is also included. If you want to use it simply rename it to "LowerToUpperCase.make" 
  49. and use the the BuildLowerToUpperCase script. The Macinstosh Easy Open PowerPC/ 68K 
  50. libraries must be placed in the appropriate directories for the make to succeed.
  51. You can check the make file to see where the libraries are expected. Note that
  52. the pragma unused is not recognized in the Pre Release version so you may want to
  53. comment them out.
  54.